package cn.qidd.keep.domain.document;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

@Data
@Document(collection = "role")
public class Role implements Serializable {
  @Id
  private String id;
  private String roleName;
  private String remark;
  private Set<Resource> resources = new HashSet<>();
  private Date operatorTime;
  private String operatorName;
  private String operatorRealName;
}
